package com.team2.outpatient_sys.service.impl;

import com.team2.outpatient_sys.dao.DoctorScheduleDao;
import com.team2.outpatient_sys.pojo.DoctorSchedule;
import com.team2.outpatient_sys.pojo.Schedule;
import com.team2.outpatient_sys.service.DoctorScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class DoctorScheduleServiceImpl implements DoctorScheduleService {

    @Autowired
    private DoctorScheduleDao doctorScheduleDao;

    @Override
    public List<Schedule> findByDoctorId(Long doctorId) {
        return doctorScheduleDao.findByDoctorId(doctorId);
    }
}
